我有两个文件,想逐行合并数据。输入文件是 file.txt 和 file2.txt。
file1.txt
howareu
abc
zooo
file2.txt
123
@@
099
我想合并这两个文件,这样输出将是:
output.txt
howareu123
howareu@@
howareu0999
abc123
abc@@
abc0999
zooo123
zooo@@
zooo0999
有没有办法做到这一点?有没有办法使用sed
orpaste
命令来获取结果?
我有两个文件,想逐行合并数据。输入文件是 file.txt 和 file2.txt。
file1.txt
howareu
abc
zooo
file2.txt
123
@@
099
我想合并这两个文件,这样输出将是:
output.txt
howareu123
howareu@@
howareu0999
abc123
abc@@
abc0999
zooo123
zooo@@
zooo0999
有没有办法做到这一点?有没有办法使用sed
orpaste
命令来获取结果?
我尝试运行应用程序“KDevelop”,但返回以下错误:
root@11:~$ kdevelop
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kbuildsycoca4 running...
kbuildsycoca4(8881) KBuildSycoca::checkTimestamps: checking file timestamps
kbuildsycoca4(8881) KBuildSycoca::checkTimestamps: timestamps check ok
kbuildsycoca4(8881) kdemain: Emitting notifyDatabaseChanged ()
kdevelop(8847)/kdevplatform (language): failed to open a repository
KCrash: Application 'kdevelop' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/user/.kde/socket-ws4/kdeinit4__1
[1]+ Stopped kdevelop
我还删除并重新安装了 KDevelop,但返回相同的错误。
我正在使用 Ubuntu 16.04 并希望访问/使用服务器中的不同磁盘(以下磁盘):
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 372G 0 disk
├─sda1 8:1 0 487M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 371.5G 0 part
├─CR2--vg-root 252:0 0 115.6G 0 lvm /
└─CR2--vg-swap_1 252:1 0 255.9G 0 lvm [SWAP]
sdb 8:16 0 12.7T 0 disk
└─sdb1 8:17 0 12.7T 0 part /mnt/storage
sdc 8:32 0 5.5T 0 disk
sdd 8:48 0 5.5T 0 disk
sde 8:64 0 5.5T 0 disk
sdf 8:80 0 5.5T 0 disk
sdg 8:96 0 5.5T 0 disk
sdh 8:112 0 5.5T 0 disk
sdi 8:128 0 5.5T 0 disk
sdj 8:144 0 5.5T 0 disk
sdk 8:160 0 5.5T 0 disk
sdl 8:176 0 5.5T 0 disk
sdm 8:192 0 5.5T 0 disk
sdn 8:208 0 5.5T 0 disk
sdo 8:224 0 5.5T 0 disk
sdp 8:240 0 5.5T 0 disk
sdq 65:0 0 5.5T 0 disk
sdr 65:16 0 5.5T 0 disk
sds 65:32 0 5.5T 0 disk
sdt 65:48 0 5.5T 0 disk
sdu 65:64 0 5.5T 0 disk
sdv 65:80 0 5.5T 0 disk
sdw 65:96 0 5.5T 0 disk
sdx 65:112 0 5.5T 0 disk
sdy 65:128 0 5.5T 0 disk
sdz 65:144 0 5.5T 0 disk
sr0 11:0 1 1024M 0 rom
nvme0n1 259:2 0 1.8T 0 disk
nvme1n1 259:1 0 1.8T 0 disk
nvme2n1 259:3 0 1.8T 0 disk
nvme3n1 259:0 0 1.8T 0 disk
我只能访问/使用以下内容:
df -h
Filesystem Size Used Avail Use% Mounted on
udev 126G 0 126G 0% /dev
tmpfs 26G 50M 26G 1% /run
/dev/mapper/CR2--vg-root 114G 83G 26G 77% /
tmpfs 126G 0 126G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 126G 0 126G 0% /sys/fs/cgroup
/dev/sdb1 13T 12T 0 100% /mnt/storage
/dev/sda1 472M 159M 289M 36% /boot
tmpfs 26G 0 26G 0% /run/user/1000
我也尝试以下方法:
sudo fdisk /dev/sdc
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
The size of this disk is 5.5 TiB (6001175126016 bytes). DOS partition table format can not be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).
Created a new DOS disklabel with disk identifier 0x2a4732aa.
我怎样才能使用其他磁盘sdc
,,sdd
...sdf
我在 Ubuntu 2016.04.5 上安装 Petalinux_v2018.2
./petalinux-v2018.2.ir.run /opt/petalinux_2018.2/
但以错误结束:
./petalinux-v2018.2.ir.run: line 52: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
INFO: Checking installer checksum...
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
Please refer to the PetaLinux Tools Installation Guide.
Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
/opt/petalinux_2018.2/petalinux_installation_log
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
INFO: Extracting PetaLinux installer...
tar: /tmp/tmp.eeJueiu2Ol: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tee: /opt/petalinux_2018.2/petalinux_installation_log: Permission denied
ERROR: Failed to extract the PetaLinux installer. Failed to install PetaLinux Tools!
任何解决此问题的帮助将不胜感激。
当我尝试
sudo ./petalinux-v2018.2.ir.run /opt/petalinux_2018.2/
它还提示错误:
ERROR: Exiting Installer: Cannot install as root user!