hi,
i want to PASTE two files, with a delimiter in between, using awk and pipe the output to another file. i am able to achive the reqirement using PASTE command.
I have a directory that has 800 files like this:
file1.png
file1@2x.png
file2.png
file2@2x.png
file3.png
file3@2x.png
... etc
I need to create zip files like this
file1.zip (containing file1.png and file1@2x.png)
file2.zip (containing file2.png and file2@2x.png)
file3.zip (containing file3.png and file3@2x.png)
Is there a magic command I can use to do that?
thanks.
Hi,
I am trying to write a script with goes through thousands of XML documents to pull out the values for a particular tag to a .txt file.
For example I have
Code:
file1.xml
file2.xml
file3.xml
.
.
.
fileN.xml
All these files have a tag called <systemID>.
The value that sits within these tags varies with every .xml file.
required output should just list all the values that sit wit
i have 1 file say
Code:
LogDirectory='/var/tmp/logs'
DataDirectory='/var/tmp/data'
DBUSER='scott'
now i want to access these variables in many files where
Code:
#!/bin/bash
${DBUSER} , ${DataDirectory}
are called how do i do that?
Moderator's Comments:
Video tutorial on how to use co
Dears,
Good Day !
I have a requirement, where in we need to SFTP files from the Unix box to the Windows server.
Since we are putting files...Where would we place the public/private keys from the Unix servers??
Any default path as such???
How would the sftp happen from Unix to Windows...Please help...
Moderator's Comments:
Hi, could someone tell my why this doesn't work?
Code:
egrep -c '\b\B+\b' file.txt
What is the correct way to count all the words in a file?
Moderator's Comments:
Welcome to the UNIX and Linux Forums. Please use code tags.
i have a directory which consist of multiple files out of which there are some files that has -e in their name.
I want to write a script that will change all those file-name to -l
example there are some files with name :
Code:
file1-e.wav
file2-e.wav
file3-english-e.wav
file-4-e.wav
expected output
Code:
file1-l.wav
file2-l.wav
file3-english-l.wav
file-4-l.wav
I have one single shown below and I need to break each ST|850 & SE to separate file using unix script. Below example should create 3 files. We can use ST & SE to filter as these field names will remain same.
Please advice with the unix code.
Code:
ST|850
BEG|PO|1234
LIN|1|23
SE|4
ST|850
BEG|PO|234
LIN|1|43
LIN|1|41
SE|5
ST|850
BEG|PO|345
LIN|1|53
SE|4