Unix shell's input redirection not working
Bash |
https://codedump.io/share/FGYGg8kK4NwW
|
I found the same question but there was no answer.
In building my own unix shell, my output redirection is working fine, but when I try the input it ...
5 years ago
modifying /etc/profile linux
Bash |
https://codedump.io/share/dg0Ie1zL49Lg
|
I need to change the greeting of user, which is logging in. So I modifyed file /etc/profile. In this greeting I need to know, which shell this user us...
5 years ago
unix - count of columns in file
Bash |
https://codedump.io/share/wQewAe7LgmJB
|
Given a file with data like this (ie stores.dat file)
sid|storeNo|latitude|longitude
2|1|-28.03720000|153.42921670
9|2|-33.85090000|151.03274200
Wh...
5 years ago
Export C #defines as shell variables
Bash |
https://codedump.io/share/TVBSCgL6O5Do
|
In my project, a number of paths to various directories, files and other components of the system are stored as #defines in a filenames.h, a file incl...
5 years ago
Bash wildcard pattern using `seq`
Bash |
https://codedump.io/share/f5n8wpMZxmwf
|
I am trying the following command:
ls myfile.h1.{`seq -s ',' 3501 3511`}*
But ls raises the error:
ls: cannot access myfile.h1.{3501,3502,3503,350...
5 years ago
How to find out uptime in minutes?
Bash |
https://codedump.io/share/naS6J8LCbi07
|
How to find out and save to file uptime on Solaris in minutes without cutting and converting it ? Is there any elegant way of doing it? Thanks for ans...
5 years ago
awk split files and keep the filename
Bash |
https://codedump.io/share/pWeu1xY0Herj
|
Using awk to split up files into chunks of 5000 lines for each file and rename them sequentially. I need to keep the original file name as part of the...
5 years ago