Hi,
Solutions may be in ksh or bash
1. i have some files like.
to find out files ends with A.Z or Q.Z i use following in ksh.
i want to find out files which don't have A.Z or Q.Z in the end using ls command?
2. i define a function outside the nawk command which trims the leading and trailing spaces like
and i want to call this function in nawk commad like.
Note: this function works fine if i define it within nawk.You may use your any dumy function for testing.
If it is possible to any outside function in nawk? and if yes,how to accomplish it
3. Sometimes while unziping some files i got an error and the further unziping stopped.might be other files are able to be unzip.i.e
it found an error on a.Z and stopped but b.Z and C.Z might be correct.
why this error comes and is there any possible way to skip the file with error and let the others start to unzip.
The 'env' command prints out all of the environment variables and their values.
Come up with a command that prints a list of environment variables whose names
end with either 'NAME', 'DIR' or 'PATH'.
What I've tried.
$ env | grep ''
Although it highlights the part of the variables... (8 Replies)
Hi I want to read a text file and replace various number of spaces between each string in to a single "," or any other character .Please let me know the command to do so. My input file is a txt file which is the output of a SQL table extract so it contains so many spaces between each column of the... (2 Replies)
Hi Folks,
I am used to writing scripts to get info by running commands at local zones level from their respective global zone by using zlogin <localzone> "command>" while remaining at the global zone level.
Can the same be done with Guest LDoms while remaining at the control LDOM level?
... (4 Replies)
i define a function outside the nawk command which trims the leading and trailing spaces like
function TrimSpace(x)
{
y=gsub(/^+|+$/,"",x)
{
return x
}
}
and i want to call this function in nawk commad like.
nawk '{print TrimSpace($1)}' file
Note:... (2 Replies)
I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked.
Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
hi guys...
am new 2 dis unix world...
am in need of a unix manual...
cud sum1 pls post sum links 2 download it?>?>? :confused:
Danks in advance... ;) ;) ;) (1 Reply)
friends i wanted to now whehter there exists a book as a solution to the questions posted in exercies of the Design of Unix Operating system by Maurice J Bach !..its really urgent !! (1 Reply)
I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
I have a few questions about Unix. Can you please help!
1.How do I create an alias that greps the password file for my username and returns my password file entry? Once I get the alias to work I want to be able to let a friend use it .So that he can use the alias to locate his password entry... (1 Reply)